package com.rui.cn.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

/**
*@description：启动类
*@author：[zhangruilin]
*@className：CloudPermisssionRepositoryApplication
*@time：2018/5/18-14:42
**/
@SpringBootApplication
@ComponentScan("com.rui.cn.provider.*")
//本服务启动后会自动注册进eureka服务中
@EnableEurekaClient
//服务发现
@EnableDiscoveryClient
public class  CloudPermisssionRepositoryApplication{
    public static void main(String[] args) {
        SpringApplication.run(CloudPermisssionRepositoryApplication.class, args);
    }

}
